package com.hang.gymmanager.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.time.LocalTime;

@Getter
@Setter
@ToString
@Accessors(chain = true)
public class PlaceDetailActRes {

    /**
     * 活动id
     */
    private Integer id;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 活动名称
     */
    private String activityName;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 预订人名称
     */
    private String userName;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime endTime;

}
